<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
<style>
    .layui-form-item{
        margin-bottom: 8px;
    }
</style>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row">
            <form style="margin: 10px 10px 10px 10px" class="layui-form layui-form-pane" id="signupForm">
                <input id="id" name="id" th:value="${module.id}" type="hidden">
                <div class="layui-form-item">
                    <label class="layui-form-label">模块名称：</label>
                    <div class="layui-input-block">
                        <input id="name" name="name" th:value="${module.name}" class="layui-input" type="text" />
                    </div>
                </div>

                <div class="layui-form-item" >
                    <label class="layui-form-label">图标地址：</label>
                    <div class="layui-input-block">
                        <input id="icon" name="icon" th:value="${module.icon}" class="layui-input" type="text" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">链接地址：</label>
                    <div class="layui-input-block">
                        <input id="linkUrl" name="linkUrl" th:value="${module.linkUrl}" class="layui-input" type="text" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">上报类型：</label>
                    <div class="layui-input-block">
                        <select data-placeholder="--请选择--" name="isClean" id="isClean" class="layui-input">
                            <option value="">请选择</option>
                            <option value="0" th:selected="${module.isClean eq 0}">巡检上报</option>
                            <option value="1" th:selected="${module.isClean eq 1}">清理上报</option>
                            <option value="2" th:selected="${module.isClean eq 2}">保养上报</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">模块标识：</label>
                    <div class="layui-input-block">
                        <input id="btnType" name="btnType" th:value="${module.btnType}" class="layui-input" type="text">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">事件：</label>
                    <div class="layui-input-block">
                        <input id="bindTap" name="bindTap" th:value="${module.bindTap}" class="layui-input"  type="text">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">排序索引：</label>
                    <div class="layui-input-block">
                        <input id="sort" name="sort" th:value="${module.sort}" class="layui-input"  type="text">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">管理员模块：</label>
                    <div class="layui-input-block">
                        <select data-placeholder="--请选择--" name="isAdmin" id="isAdmin" class="layui-input">
                            <option value="">请选择</option>
                            <option value="0" th:selected="${module.isAdmin eq 0}">默认模块</option>
                            <option value="1" th:selected="${module.isAdmin eq 1}">管理员模块</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">问卷调查：</label>
                    <div class="layui-input-block">
                        <select data-placeholder="--请选择--" name="isSurvey" id="isSurvey" class="layui-input">
                            <option value="">请选择</option>
                            <option value="0" th:selected="${module.isSurvey eq 0}">非问卷调查类</option>
                            <option value="1" th:selected="${module.isSurvey eq 1}">问卷调查类</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div style="text-align: center;margin-top: 20px">
                        <button type="submit" onclick="update()" class="layui-btn layui-btn-lg layui-btn-normal" >提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/module/wxmodule/detail.js}"></script>
</body>
</html>
